public class J01ask {
    public static void main(String[] args) {
        System.out.println(1+1+"a");//2a
        System.out.println(1+"a"+1);//1a1
        System.out.println("a"+1+1);//a11
        System.out.println("a"+(1+1));//a2
    }
}
